//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

let v = UIView(frame: CGRectMake(0,0,100,100))
v.backgroundColor = UIColor.redColor()

let btn = UIButton(type: UIButtonType.ContactAdd)

UIView.animateWithDuration(1) { () -> Void in
    btn.center = v.center
}
v.addSubview(btn)

